import Vue from 'vue'
import App from './App.vue'
import router from './router'  //路由
import store from './store' // 引入store
import $axios from './utils/http.js';  // axios 配置文件 
import ElementUI from 'element-ui'; // element js
import 'element-ui/lib/theme-chalk/index.css'; // element css
import myFooter from './components/Footer';


Vue.config.productionTip = false
// 全局属性
Vue.prototype.$axios = $axios;
Vue.prototype.$set = Vue.set; // 解决对象赋值视图不更新
Vue.prototype.$message = ElementUI.Message;
Vue.prototype.$loading = ElementUI.Loading;

// 公共组件
Vue.component('myFooter', myFooter);

Vue.use(ElementUI);
new Vue({
    router,
    store,
    render:h=>h(App),
}).$mount("#app");